package com.ruoyi.project.hit.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.hit.domain.CardUser;
import com.ruoyi.project.hit.service.CardUserService;
import com.ruoyi.project.hit.mapper.CardUserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author yifeng868
* @description 针对表【card_user】的数据库操作Service实现
* @createDate 2024-05-31 16:16:43
*/
@Service
public class CardUserServiceImpl extends ServiceImpl<CardUserMapper, CardUser>
    implements CardUserService{
    @Resource
    private CardUserMapper cardUserMapper;
    @Override
    public Long selectByDictKey(String dictKey) {
        LambdaQueryWrapper<CardUser> wrapper=new LambdaQueryWrapper<>();
        wrapper.eq(CardUser::getLevel,dictKey);
        return cardUserMapper.selectCount(wrapper);
    }
}




